package com.situ.day6.homework;

import org.junit.Test;

public class Demo {
    @Test
    public void test1() {
        // 构造方法：构造对象的时候调用的方法
        // new 构造方法，实例化一个对象
        Rect rect = new Rect(12, 3);
        System.out.println(rect);
        // System.out.println(rect.toString());
        int zhouChang = rect.zhouChang();
        System.out.println(zhouChang);
    }

    @Test
    public void test2() {
        Point point = new Point(3, 5);
        point.movePoint(2, 2);
        System.out.println(point);
    }
}
